package cn.kgc.mapper;

import cn.kgc.pojo.SmbmsAddress;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AddressMapper {

    SmbmsAddress getAddressId(@Param("id") Integer id);

    int getAddressConut(@Param("contact")String contact);

    List<SmbmsAddress> getAddressBypage(@Param("pageNo") Integer pageNo,
                                        @Param("pageSize") Integer pageSize,
                                        @Param("contact")String contact);


    int addAddress(SmbmsAddress smbmsAddress);

    int updateAddress(SmbmsAddress smbmsAddress);

    int delAddress(Integer id);

    SmbmsAddress getpostCode(@Param("postCode")String postCode);

}
